package com.learning.platform.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class TagRequest {
    @NotBlank(message = "标签名称不能为空")
    @Size(min = 2, max = 50, message = "标签名称长度应在2-50个字符之间")
    private String name;

    @Size(max = 500, message = "标签描述长度不能超过500个字符")
    private String description;

    // Constructors
    public TagRequest() {}

    // Getters and Setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}

